<?php
$menu = [
    [
        'name'  => '后台首页',
        'icon'  => 'mdi-home',
        'op'    => 'Index',
        'act'   => 'index',
        'child' => []
    ],
    [
        'name'  => '系统管理',
        'icon'  => 'mdi-settings',
        'op'    => 'System',
        'child' => [
            ['name' => '系统设置', 'op' => 'System', 'handle' => 'index', 'act' => 'index', 'group' => 'system'],
            ['name' => '支付配置', 'op' => 'System', 'handle' => 'plugin_index|plugin_edit', 'act' => 'plugin_index', 'group' => 'system'],
            ['name' => '全国地区', 'op' => 'System', 'handle' => 'region_index|add_edit_region', 'act' => 'region_index', 'group' => 'system'],
            ['name' => '运费模板', 'op' => 'System', 'handle' => 'shipping_index|add_edit_shipping', 'act' => 'shipping_index', 'group' => 'system'],
            ['name' => '底部导航', 'op' => 'System', 'handle' => 'tabBarList|tabBarDetail', 'act' => 'tabBarList', 'group' => 'system'],
            ['name' => '分销设置', 'op' => 'System', 'handle' => 'distribution', 'act' => 'distribution', 'group' => 'system'],
            //            ['name'=>'所有图标','op'=>'System','handle'=>'icons','act'=>'icons','group'=>'system'],
        ]
    ],
    [
        'name'  => '会员管理',
        'icon'  => 'mdi-account-multiple',
        'op'    => 'User',
        'child' => [
            ['name' => '会员列表', 'op' => 'User', 'handle' => 'index|user_team|add_user|detail|account_edit|address', 'act' => 'index', 'group' => 'member'],
            ['name' => '会员钱包', 'op' => 'User', 'handle' => 'wallet_index|add_edit_wallet', 'act' => 'wallet_index', 'group' => 'member'],
            ['name' => '会员等级', 'op' => 'User', 'handle' => 'level_list|add_edit_level', 'act' => 'level_list', 'group' => 'member'],
            //            ['name'=>'团队等级','op'=>'User','handle'=>'td_level_list|add_edit_td_level','act'=>'td_level_list','group'=>'member'],
            ['name' => '会员资金', 'op' => 'User', 'handle' => 'account_log', 'act' => 'account_log', 'group' => 'member'],
            ['name' => '充值记录', 'op' => 'User', 'handle' => 'user_recharge_log', 'act' => 'user_recharge_log', 'group' => 'member'],
            //            ['name'=>'会员积分','op'=>'User','handle'=>'jifen_log','act'=>'jifen_log','group'=>'member'],
            //            ['name'=>'代理会员','op'=>'User','handle'=>'dl_user_list|add_edit_dl_user','act'=>'dl_user_list','group'=>'member'],
            ['name' => '提现申请', 'op' => 'User', 'handle' => 'withdrawals', 'act' => 'withdrawals', 'group' => 'member'],
            //            ['name'=>'会员充值','op'=>'User','handle'=>'recharge','act'=>'recharge','group'=>'member'],
            ['name' => '会员转赠', 'op' => 'User', 'handle' => 'given', 'act' => 'given', 'group' => 'member'],
            //            ['name'=>'会员转化','op'=>'User','handle'=>'change','act'=>'change','group'=>'member'],
            ['name' => '会员签到', 'op' => 'User', 'handle' => 'user_sign', 'act' => 'user_sign', 'group' => 'member'],
            ['name' => '团队分红', 'op' => 'User', 'handle' => 'jl_log', 'act' => 'jl_log', 'group' => 'member'],
            ['name' => '分红领取', 'op' => 'User', 'handle' => 'jl_lq_log', 'act' => 'jl_lq_log', 'group' => 'member'],
        ]
    ],
    [
        'name'  => '商家管理',
        'icon'  => 'mdi-store',
        'op'    => 'Store',
        'child' => [
            //            ['name'=>'商家申请','op'=>'Store','handle'=>'store_check_list|store_check_detail','act'=>'store_check_list','group'=>'store'],
            ['name' => '商家列表', 'op' => 'Store', 'handle' => 'store_list|store_detail', 'act' => 'store_list', 'group' => 'store'],
            ['name' => '自提点列表', 'op' => 'Store', 'handle' => 'pick_list|pick_detail', 'act' => 'pick_list', 'group' => 'store'],
        ]
    ],
    [
        'name'  => '商品管理',
        'icon'  => 'mdi-shopping',
        'op'    => 'Goods',
        'child' => [
            ['name' => '商品列表', 'op' => 'Goods', 'handle' => 'goods_list|add_edit_goods', 'act' => 'goods_list', 'group' => 'goods'],
            ['name' => '商品分类', 'op' => 'Goods', 'handle' => 'category_list|add_edit_category', 'act' => 'category_list', 'group' => 'goods'],
            ['name' => '商品模型', 'op' => 'Goods', 'handle' => 'goods_type_list', 'act' => 'goods_type_list', 'group' => 'goods'],
            ['name' => '兑换商品', 'op' => 'Goods', 'handle' => 'convert_goods_list|add_edit_convert_goods', 'act' => 'convert_goods_list', 'group' => 'goods'],
            ['name' => '积分商品', 'op' => 'Goods', 'handle' => 'jifen_goods_list|add_edit_jifen_goods', 'act' => 'jifen_goods_list', 'group' => 'goods'],
            ['name' => '进货商品', 'op' => 'Goods', 'handle' => 'stock_goods_list|add_edit_stock_goods', 'act' => 'stock_goods_list', 'group' => 'goods'],
            ['name' => '认养分类', 'op' => 'Goods', 'handle' => 'foster_goods_category|add_edit_foster_goods_category', 'act' => 'foster_goods_category', 'group' => 'goods'],
            ['name' => '认养商品', 'op' => 'Goods', 'handle' => 'foster_goods_list|add_edit_foster_goods', 'act' => 'foster_goods_list', 'group' => 'goods'],
            ['name' => '监控分类', 'op' => 'Goods', 'handle' => 'classify_index|add_edit_classify', 'act' => 'classify_index', 'group' => 'goods'],
            ['name' => '监控列表', 'op' => 'Goods', 'handle' => 'monitor_index|add_edit_monitor', 'act' => 'monitor_index', 'group' => 'goods'],
        ]
    ],
    [
        'name'  => '交易管理',
        'op'    => 'Deal',
        'icon'  => 'mdi-wallet',
        'child' => [
            ['name' => '会员交易', 'handle' => 'user_wallet_deal_list', 'op' => 'Deal', 'act' => 'user_wallet_deal_list', 'group' => 'deal'],
            ['name' => '会员某票', 'handle' => 'user_wallet_list|add_user_wallet|user_wallet_log', 'op' => 'Deal', 'act' => 'user_wallet_list', 'group' => 'deal'],
            ['name' => '会员转让', 'handle' => 'user_wallet_given_list', 'op' => 'Deal', 'act' => 'user_wallet_given_list', 'group' => 'deal'],
        ]
    ],
    [
        'name'  => '订单管理',
        'op'    => 'Order',
        'icon'  => 'mdi-content-paste',
        'child' => [
            ['name' => '商城订单', 'handle' => 'index|order_detail', 'op' => 'Order', 'act' => 'index', 'group' => 'order'],
            ['name' => '认养订单', 'handle' => 'foster_index|foster_order_detail', 'op' => 'Order', 'act' => 'foster_index', 'group' => 'order'],
            ['name' => '兑换订单', 'handle' => 'convert_index|convert_order_detail', 'op' => 'Order', 'act' => 'convert_index', 'group' => 'order'],
            ['name' => '积分订单', 'handle' => 'jifen_index|jifen_order_detail', 'op' => 'Order', 'act' => 'jifen_index', 'group' => 'order'],
            ['name' => '进货订单', 'handle' => 'stock_index|stock_order_detail', 'op' => 'Order', 'act' => 'stock_index', 'group' => 'order'],
        ]
    ],
    [
        'name'  => '内容管理',
        'icon'  => 'mdi-file-check',
        'op'    => 'Content',
        'child' => [
            ['name' => '广告列表', 'op' => 'Content', 'handle' => 'ad_list|add_edit_ad', 'act' => 'ad_list', 'group' => 'content'],
            ['name' => '首页导航', 'op' => 'Content', 'handle' => 'home_nav_list|add_home_nav', 'act' => 'home_nav_list', 'group' => 'content'],
            ['name' => '公告列表', 'op' => 'Content', 'handle' => 'essay_list|add_edit_essay', 'act' => 'essay_list', 'group' => 'content'],
            //            ['name'=>'文章列表','op'=>'Content','handle'=>'article_list|add_edit_article','act'=>'article_list','group'=>'content'],
            ['name' => '协议列表', 'op' => 'Content', 'handle' => 'protocol_list|add_edit_protocol', 'act' => 'protocol_list', 'group' => 'content'],
        ]
    ],
    [
        'name'  => '数据管理',
        'icon'  => 'mdi-database',
        'op'    => 'Report',
        'child' => [
            ['name' => '销售概况', 'handle' => 'index|sale_order', 'op' => 'Report', 'act' => 'index', 'group' => 'count'],
            ['name' => '销售排行', 'handle' => 'sale_top', 'op' => 'Report', 'act' => 'sale_top', 'group' => 'count'],
            ['name' => '会员排行', 'handle' => 'user_top|user_order', 'op' => 'Report', 'act' => 'user_top', 'group' => 'count'],
            //            ['name'=>'团队排行','handle'=>'team_top','op'=>'Report','act'=>'team_top','group'=>'count'],
            //            ['name'=>'地区排行','handle'=>'area_top','op'=>'Report','act'=>'area_top','group'=>'count'],
            ['name' => '销售明细', 'handle' => 'sale_list', 'op' => 'Report', 'act' => 'sale_list', 'group' => 'count'],
            ['name' => '会员统计', 'handle' => 'user', 'op' => 'Report', 'act' => 'user', 'group' => 'count'],
        ]
    ],
    [
        'name'  => '权限管理',
        'icon'  => 'mdi-laptop-off',
        'op'    => 'Admin',
        'child' => [
            ['name' => '管理员列表', 'handle' => 'admin_list|add_edit_admin', 'op' => 'Admin', 'act' => 'admin_list', 'group' => 'admin'],
            ['name' => '角色管理', 'handle' => 'admin_role|add_edit_role', 'op' => 'Admin', 'act' => 'admin_role', 'group' => 'admin'],
            //            ['name'=>'权限资源列表','handle'=>'right_list|add_edit_right','op'=>'Admin','act'=>'right_list','group'=>'admin'],
            ['name' => '管理员日志', 'handle' => 'admin_log', 'op' => 'Admin', 'act' => 'admin_log', 'group' => 'admin'],
        ]
    ],
    [
        'name'  => '微信管理',
        'icon'  => 'mdi-wechat',
        'op'    => 'Weixin',
        'child' => [
            //            ['name'=>'公众号配置','handle'=>'setting','op'=>'Weixin','act'=>'setting','group'=>'weixin'],
            ['name' => '微信用户', 'handle' => 'third_user', 'op' => 'Weixin', 'act' => 'third_user', 'group' => 'weixin'],
            //            ['name'=>'公众号菜单','handle'=>'wx_menu','op'=>'Weixin','act'=>'wx_menu','group'=>'weixin'],
        ]
    ],
];
return $menu;
